#include "mainwindow.h"
#include "ui_mainwindow.h"

MainWindow::MainWindow(QWidget *parent)
    : QMainWindow(parent)
    , ui(new Ui::MainWindow)
{
    ui->setupUi(this);

    // 设置窗口为无边框
    //setWindowFlags(Qt::FramelessWindowHint);

//    this->setStyleSheet("QMainWindow { background-color: rgb(240, 244, 249); }");
//    ui->widget->setStyleSheet("QWidget { background-color: qlineargradient(spread:pad, x1:0, y1:0, x2:1, y2:1, stop:0 rgba(146, 205, 236, 255), stop:1 rgba(255, 255, 255, 255)); border-radius: 5px;}");

    ui->pushButton->setStyleSheet(pushButtonStyle);
//    ui->checkBox->setStyleSheet(checkBoxStyle);
//    ui->radioButton->setStyleSheet(radioButtonStyle);
//    ui->comboBox->setStyleSheet(comboBoxStyle);

//    this->setStyleSheet(pushButtonStyle);
//    this->setStyleSheet(checkBoxStyle);
    this->setStyleSheet(AllStyle);
}

MainWindow::~MainWindow()
{
    delete ui;
}
